Carbon


UpTime

Header: Multiprocessing.h Carbon status: Supported

Obtains the time elapsed since machine startup.

AbsoluteTime UpTime ();
function result

The time elapsed since the host computer was started up. Absolute time is a 64-bit monotonically increasing value. You should not make any assumptions about what units absolute time is based upon.

DISCUSSION

You can call this function from the task level, software interrupt level, or hardware interrupt level.

This function is identical to the UpTime function found in the Driver Services Library.

VERSION NOTES

Available in the Multiprocessing Services library with version 2.0.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.6 or later.


© 2000 Apple Computer, Inc. (Last Updated 7/13/2000)